﻿using RAP.Framework.Libary.Utils;
using System;
using System.Collections.Generic;
using System.Text;

namespace RAP.Framework.Libary.SqlTaskParser.Parsers
{
  /// <summary>
  /// @results解析器，指定整个查询最后返回的结果集，默认采样sql语句中最后一条定义
  /// </summary>
  public class ResultsTokenParser : ExpressionTokenParser
  {
    public override void ParseToken(SqlParseContext context)
    {
      context.ParseResult.ResultAlias = context.CurrentToken.Param.ToHashSet();
      base.ParseToken(context);
    }
  }
}
